package com.kdd.campus.common.exception;

import lombok.Data;

/**
 * @Auther: fcp
 * @Date: 2020/5/5 16:20
 * @Description:
 */
public enum ExceptionEnum {

    STOCK_OUT(601,"库存不足"),
    UNAUTHORIZED(401, "暂未登录或token已经过期");


    private Integer code;
    private String message;

    ExceptionEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    public Integer getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }

}
